Repository navigation
Organize + librarian: the brain sorts itself (0.6.0) - #13
Merged
Merged
Conversation
Lint only reported rot; nothing fixed it. Two routines now come with every brain: - organize (daily, upkeep, on): fixes what has exactly one right answer and commits it. Misfiled records move to their type's folder; unsigned shared notes are signed from evidence (agent folder, import note, Agent: trailer, or the commit that added them, skipping bulk commits and bots); [[person/x]] links become [[people/x]] in bodies and links:, and a broken record link is pointed at the one record with that id. Ambiguous cases are listed, not touched; tags, other frontmatter and code are never rewritten; it won't commit over someone else's staged work. Also `brainium organize [--apply]` and the brain_organize tool. - librarian (daily, prompt, off and in shadow until approved): links new notes to their records (creating records two notes need), moves notes where they belong with a pointer, merges duplicates, signs notes whose author is clear and messages owners of stale records. Never deletes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Lint reported rot (misfiled records, unsigned notes, broken links), but nothing fixed it, so brains only got messier.
What
organize: a daily upkeep routine, on by default, that fixes what has exactly one right answer and commits it.Agent:trailer, or the commit that added them. Bulk commits and bots don't count.[[person/x]]links become[[people/x]], and broken record links point at the only record with that id.brainium organize [--apply]and thebrain_organizetool.librarian: a daily AI prompt routine, off and in shadow mode until a person approves it. It:It never deletes.
docs/CONTEXT-SYSTEM.mdhas a new "Organize and the librarian" section.Tests
npm test: 59/59 pass. The new tests use a real git brain to cover moves, every signing source, the bulk-commit rule, link fixes (body,links:, aliases), leaving tags and code alone, idempotence and the commit trailer.🤖 Generated with Claude Code